This repository includes all the files and code necessary to verify or replicate the analysis and Monte Carlo simulations described in "List Experiment Design, Non-Strategic Respondent Error, and Item Count Technique Estimators." by John S. Ahlquist and forthcoming in Political Analysis.

The repository consists of a root directory containing the following files:

 - AhlquistPAsimulationsAnalysis.R: an R file that loads all data, performs the analysis, and generates tables and graphics that appear in the main manuscript.

 - AMJ_wave_2.sav: an SPSS data file containing the data from the 2013 wave of the Ahlquist, Mayer, and Jackman list experiments used in Section 3.

 - N2000simsAnalysis.R: an R file that loads data and performs supplementary analysis on the N=2000 Monte Carlo simulations reported in the supplemental materials.

Within the root folder are two subdirectories: MCcode and MCoutput.

MCcode contains the following files:

 - BIListExp.R: The R script that runs the N=1000 Monte Carlo simulations under the Blair-Imai style lists.  These lists are described in detail in the supplementary materials.  NOTE: these simulations take an extraordinary amount of time to run (~9 days on a linux-based server).  Set "sims" value to some small positive integer to run the code for verification purposes.

 - DesignedListExp1000.R: The R script that runs the N=1000 Monte Carlo simulations under the "designed" lists.  These lists are described in detail in the supplementary materials.  NOTE: these simulations take an extraordinary amount of time to run (~9 days on a linux-based server).  Set the "sims" value to some small positive integer to run the code for verification purposes.

The folder also contains a six other .R files for running the N=2000 Monte Carlo simulations described in the supplementary materials.   All these Monte Carlo simulations use "designed" lists.  The naming convention for these files reflects the length of the list and the prevalence of the sensitive item in that simulation.  For example, DLn2000J4b_4.R is code for a designed list (DL) with N=2000 (n2000) with J=4 and b_1 set to -4, i.e., the low prevalence condition.  NOTE: these simulations take an extraordinary amount of time to run.  Set the "sims" value to some small positive integer to run the code for verification purposes.

MCoutput subdirectory contains files and another subdirectory named N2000sims. Both the main folder and the subdirectory contain two types of files, .Rdata and .log.  

The .log files are the actual server logs for the Monte Carlo runs.  From these log files we can verify places where the ICT-MLE exited with an error.  The names of the log files correspond to the names of the .R files that generated a particular Monte Carlo simulation.

The .Rdata files contain the actual output from the Monte Carlo simulations:

 - PAsimulations_BI.Rdata contains the Monte Carlo output from the simulations using Blair-Imai style lists and N=1000.  

 - PAsimulations_designed1000.Rdata contains the Monte Carlo output from the simulations using "designed" lists and N=1000.

The output from the N=2000 Monte Carlo runs are contained in the N2000sims subdirectory.  The naming convention follows that for the .R files that generate the output.